package tgc.edu.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.tms.custom.CommonService;
import tgc.edu.tms.entity.Classroom;
import tgc.edu.tms.repository.ClassroomRepository;

@Service
public class ClassroomService extends CommonService<Classroom, Integer>{
	@Autowired
	private ClassroomRepository classroomDAO;

	public List<String> findByLocationId(Integer id) {
			return classroomDAO.findByLocationId(id);
	}
	public Classroom findBySerialNumber(String serialNumber) {
		return classroomDAO.findBySerialNumber(serialNumber);
	}
	
}
